<div class="data-input">
    <fieldset>
        <legend><?php echo "$formTitle";?></legend>
        <?php
          foreach ($listTahunAjaran as $row);
          echo form_open_multipart($subLink, '');
        ?>
        <table width="100%">
          <tr>
            <td valign="top">  
              <label>Nama</label><?php echo form_input('nama', '','id=nama');?>
              <fieldset class="field-group">
                  <label>Tgl. Lahir</label><?php echo form_input('tglLahir', '', "class='datepicker-input' id='tglLahir'");?>
              </fieldset>
              <fieldset class="field-group">
                  <label>Jenis Kelamin</label>
                  <label class="field-option"><?php echo form_radio("jeKel", "L",false,"id='L'")?>Laki-laki</label>
                  <label class="field-option"><?php echo form_radio("jeKel", "P",false,"id='P'")?>Perempuan</label>
              </fieldset>
              <label>Orang Tua</label><?php echo form_input('ortu', '','id=ortu');?>
              <fieldset class="field-group">
                  <label>Jumlah Saudara</label><?php echo form_input('jumSaudara', '','id=jumSaudara class=tanggal');?>
              </fieldset>
              <label>Alamat</label><?php echo form_input('alamat', '','id=alamat');?>
              <fieldset class="field-group">
                <label>Tgl. Diterima</label><?php echo form_input('tglDiterima', '',"class='datepicker-input' id='tglDiterima'");?>
              </fieldset>
            </td>
            <td valign="top">
              <label>No. Telepon</label><?php echo form_input('noTelp', '','id=noTelp maxlength=15');?>
              <label>Sekolah</label><?php echo form_input('sekolah', '','id=sekolah');?>
              <input type="hidden" name="idSekolah" id="idSekolah" />
              <label>Kelas</label>
                <select name="kelas" id="kelas">
                    <option value="">Pilih kelas</option>
                </select>
              <label>Tahun Ajaran</label>
              <span style="font-size: 11px;padding-top: 7px;">
              <?php
                echo $row['nama']." ".$row['semester'];
              ?>
              </span>    
              <fieldset class="field-group">
                <label>Foto</label><?php echo form_upload('userfile');?>
              </fieldset>
              <fieldset class="input-process">
                  <?php
                      echo form_hidden('id_tahun_ajaran', $row['id']);
                      echo form_submit("add", "Simpan", "class='button' style='margin-right:2px'");
                      echo form_button('Batal', 'Batal', 'class=button onClick='."javascript:location.href='".base_url()."index.php/adik_asuh/'".'');
                  ?>
              </fieldset>
            </td>
          </tr> 
        </table>  
        <?php
          echo form_close();
        ?>
    </fieldset>
</div>
